<?
$tree = M('ExpertsDomain')->getTree(-1);
$data = M('ExpertsDomain')->getData();
?>
<ul class="lingyu_nav_out" id="leftmenu" style="margin-bottom:10px;" >
  <li class="left_nav_title"><span><a href="<?=_url('Experts','Domain')?>">更多>></a></span><img src="<?=$TPL['url']?>images/icon_lingyu_nav.gif" />领域导航</li>
  <?foreach($tree as $main => $sub){?>
  <li><a href="javascript:void(null)" target="_self"><img src="<?=$TPL['url']?>images/icon_arr.gif" />
    <?=$data[$main]['name']?>
    </a>
    <ul>
      <?foreach($sub as $leaf => $null){?>
      <li><a href="<?=_url('Experts','Domain',"search[domain]=$leaf")?>"><?=$data[$leaf]['name']?></a></li>
      <?}?>
    </ul>
  </li>
  <?}?>
  <div style="clear:both;"></div>
</ul>
<script type="text/javascript" src="<?=$TPL['url']?>js/left_nav.js"></script>
